package com.example;


import com.alibaba.csp.sentinel.annotation.aspectj.SentinelResourceAspect;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class App {
    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }

    @Bean
    public SentinelResourceAspect sentinelResourceAspect() {
        SentinelResourceAspect sentinelResourceAspect =  new SentinelResourceAspect();
        return sentinelResourceAspect;
    }
}
